package io.github.rascaler.dcenter.utils;

import java.time.LocalDate;
import java.time.ZoneId;
import java.util.Date;

public class DateUtil {
    public static Date today() {
        return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());
    }

    public static Long currentMinute() {
        return System.currentTimeMillis() / 60000 * 60000;
    }
}
